package io.renren.modules.weixin.service.impl;

import io.renren.modules.weixin.dao.WeixinFanMapper;
import io.renren.modules.weixin.entity.WeixinFan;
import io.renren.modules.weixin.service.WeixinFanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: zhangxinlin
 * @Description:
 * @Date: Create in 15:11 2018/1/29
 * @Modified By：
 */
@Service
public class WeixinFanServiceImpl implements WeixinFanService {
    @Autowired
    private WeixinFanMapper weixinFanMapper;

    @Override
    public WeixinFan selectByOpenid(String openid) {
        return weixinFanMapper.selectByOpenid(openid);
    }

    @Override
    public void deleteByOpenid(String openid) {
        weixinFanMapper.deleteByOpenid(openid);
    }

    @Override
    public void save(WeixinFan fan) {
        weixinFanMapper.save(fan);
    }

    @Override
    public void updateByPrimaryKeySelective(WeixinFan fan) {
        weixinFanMapper.updateByPrimaryKeySelective(fan);
    }

    @Override
    public void updateByPrimaryKey(WeixinFan fan) {
        weixinFanMapper.updateByPrimaryKeySelective(fan);
    }
}
